﻿<%@ Page Title="Kullanıcı Arama | TodayWho" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="TodayWho.search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
        <asp:ScriptManager ID="scriptmanager" runat="server" ></asp:ScriptManager>
        <asp:UpdatePanel ID="updatepanel" runat="server" >
            <ContentTemplate>
                <asp:Panel ID="pnl" runat="server" DefaultButton="btnSearch">
                     <div id="stylized" class="myform">
        
                        <h1>Kullanici Arama</h1>
                        <p>Kategori secerek ve kullanici ismini yazarak arama yapabilirsiniz</p>

                        <div style="height:70px">
                            <label>Kategori
                            <span class="small">Kategori seciniz.</span>
                            </label>
                            <asp:DropDownList ID="ddlCategory" runat="server" CssClass="select" >
                                <asp:ListItem Text="Hepsi" Value="0" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="Genel" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Müzik" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Spor" Value="3"></asp:ListItem>
                                <asp:ListItem Text="Sanat" Value="4"></asp:ListItem>
                                <asp:ListItem Text="Edebiyat" Value="5"></asp:ListItem>
                                <asp:ListItem Text="Tech" Value="6"></asp:ListItem>
                            </asp:DropDownList>
                            <label>Kullanici
                            <span class="small">Kullanici giriniz.</span>
                            </label>
                             <asp:TextBox ID="txtSearch" runat="server"  CssClass="text"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="rqtxtSearch" runat="server" ControlToValidate="txtSearch" ValidationGroup="vgSearch"  >*</asp:RequiredFieldValidator>
                            
                        </div>
                         <div style="margin-bottom:30px;height:70px;text-align:center">
                            <asp:Button ID="btnSearch" runat="server" Text="Arama Yap" CssClass="button" OnClick="btnSearch_OnClick" ValidationGroup="vgSearch"  />
                         </div>
                        <div class="spacer"></div>
                    </div>
                </asp:Panel>
                
                
                <div class="searchResultsMain">
                    <asp:Repeater ID="repeaterSearchResults" runat="server">
                        <ItemTemplate>
                            <div class="searchs">
                                <div class="searchs-content">
                                    <div class="searchs-image">
                                       <a href="http://todaywho.com/<%# DataBinder.Eval(Container.DataItem,"username")%>" ><img width="280" height="180" src="<%# DataBinder.Eval(Container.DataItem,"photoUrl1")%>" title="" alt="" /></a>
                                    </div>
                                    <div class="searchs-desc">
                                       <a href="http://todaywho.com/<%# DataBinder.Eval(Container.DataItem,"username")%>" > <%# DataBinder.Eval(Container.DataItem,"nameSurname")%>   </a>
                                    </div>
                                    <div class="searchs-category">
                                        <%# DataBinder.Eval(Container.DataItem,"categoryName")%>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                
            </ContentTemplate>
        </asp:UpdatePanel>
 
</asp:Content>
